<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div class="header">
	<div class="loginstatus">
		<div class="banner-login">
			<ul>
				<c:if test="${empty sessionScope.currUser.userName }">
					<li><a href="<%=basePath%>login.jsp">亲，请登陆</a></li>
				</c:if>
				<c:if test="${!empty sessionScope.currUser.userName }">
					<li><a href="<%=basePath%>#">欢迎:${sessionScope.currUser.userName }</a></li>
					<li><a href="logout.action">退出</a></li>
				</c:if>
				<c:if test="${empty sessionScope.currUser.userName }">
					<li><a href="<%=basePath%>register.jsp">免费注册</a></li>
				</c:if>
			</ul>
		</div>
		<div>
			<ul class="sddm">
				<c:if test="${empty sessionScope.currUser.userName }">
					<li></li>
				</c:if>
				<c:if test="${!empty sessionScope.currUser.userName }">
					<li><a href="index.jsp" >首页</a></li>
				</c:if>
				<c:if test="${empty sessionScope.currUser.userName }">
					<li></li>
				</c:if>
				<c:if test="${!empty sessionScope.currUser.userName }">
					<li><a href="./uc/usercenter.jsp" onmouseover="mopen('m1')"
						onmouseout="mclosetime()">我的账号</a> <!-- <div id="m1" onmouseover="mcancelclosetime()"
							onmouseout="mclosetime()">
							<a href="#">已买商品</a> <a href="./uc/publishgoods.jsp#eee"
								target="content">我的上新</a> <a href="#">我的优惠</a>
						</div> --></li>
				</c:if>
				<c:if test="${empty sessionScope.currUser.userName }">
					<li></li>
				</c:if>
				<%-- <c:if test="${!empty sessionScope.currUser.userName }">
					<li><a href="#" onmouseover="mopen('m2')"
						onmouseout="mclosetime()">商品收藏</a>
						<div id="m2" onmouseover="mcancelclosetime()"
							onmouseout="mclosetime()">
							<a href="#">卖家收藏</a> <a href="#">宝贝收藏</a>
						</div></li>
				</c:if> --%>
				<c:if test="${empty sessionScope.currUser.userName }">
					<li></li>
				</c:if>
				<c:if test="${!empty sessionScope.currUser.userName }">
					<li><a href="#" onmouseover="mopen('m3')"
						onmouseout="mclosetime()">账号信息</a></li>
				</c:if>
			</ul>
		</div>
	</div>


	<div class="logo">
		<a href="<%=basePath%>index.jsp"><img src="./img/logo.jpg" /></a>
	</div>
	<div class="search">
		<div class="header-search">
			<div class="header-search-fields">
				<form action="" method="get">
					<input class="header-search-box" type="text" name="search" />
					<button class="search-btn">搜索</button>
				</form>
			</div>
		</div>
	</div>
	<script src="<%=basePath%>res/js/qrcode.js"></script>
	<div class="qrcode">
		
		<div id="code-site">
			
		</div>
	</div>
	<script>
	var thisurl = window.location.href;
	var qrcode = new QRCode("code-site", {
	text: thisurl,
	width: 120,
	height: 120,
	colorDark : "#000000",
	colorLight : "#ffffff",
	correctLevel : QRCode.CorrectLevel.H
});
	
	</script>
</div>